#gunicorn -w 4 -b 127.0.0.1:5000 app:app
#gunicorn -w 4 -b 127.0.0.1:8000 -c gunicorn.conf.py app:app

#gunicorn -c gunicorn.conf.py app:app

import os
import multiprocessing


debug = True
bind = '0.0.0.0:81'   #绑定ip和端口号
loglevel = 'debug'
access_log_format = '%(t)s %(p)s %(h)s "%(r)s" %(s)s %(L)s %(b)s %(f)s" "%(a)s"'  #设置gunicorn访问日志格式，错误日志无法设置
pidfile = 'log/gunicorn.pid'
accesslog = "log/gunicorn_access.log"   #访问日志文件
errorlog = "log/gunicorn_error.log"    #错误日志文件
workers = multiprocessing.cpu_count() * 2 + 1  #进程数
capture_output = True
